const pool = require('./db.js')
class weatherDao{
  // 获取所有的气象数据
  async getWeatherData(){
    try{
      let result = await pool.execute('select * from weatherdata')
      return result
    }catch(err){
      console.log("出错："+err)
    }
  }
}

module.exports = new weatherDao()